package com.ljf.common.enums;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

/**
 * 状态枚举
 *
 * @author LJF
 * @since 2024-01-26
 */
@Getter
public enum StateEnum implements BasicEnum {

    DISABLE(0, "删除"),
    ENABLE(1, "正常");

    @JsonProperty("code")
    @ApiModelProperty(value = "编码")
    private final Integer code;

    @JsonProperty("name")
    @ApiModelProperty(value = "描述")
    private final String name;

    StateEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

}
